﻿@model IEnumerable<Mvc.Models.Evaluacion>

@{
    ViewBag.Title = "Index";
}

<h2>Estados del proyecto: @ViewData["NombreProyecto"]</h2>

<p>
    @Ajax.ActionLink("Adicionar", "Create", "Evaluacion",new { ProyectoID=ViewData["ProyectoID"] }, new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" },new { @class = "btn btn-default navbar-btn" })
   
    

</p>
    @Ajax.ActionLink("Regresar", "Index", "Proyecto", new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" })

<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Estado)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Concepto)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ProyectoID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FechaCreacion)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Estado)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Concepto)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProyectoID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FechaCreacion)
        </td>
        <td>
            @Ajax.ActionLink("Editar", "Edit", "Evaluacion",new { id=item.ID }, new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" },new { @class = "btn btn-default navbar-btn" })
            @Ajax.ActionLink("Detalles", "Details", "Evaluacion",new { id=item.ID }, new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" },new { @class = "btn btn-default navbar-btn" })
             @Ajax.ActionLink("Eliminar", "Delete", "Evaluacion",new { id=item.ID }, new AjaxOptions { UpdateTargetId = "content", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" },new { @class = "btn btn-default navbar-btn" })

          
        </td>
    </tr>
}
        
</table>
